200 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems,oItems1 LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("FormatAnchor",.T.,"<b><u><fgcolor=FF0000> </fgcolor></u></b>") oTree:Columns():Add("Column") oItems := oTree:Items() oItems:SetProperty("CellCaptionFormat",oItems:AddItem("Just an <a1>anchor</a> element ..."),0,1/*exHTML*/) oItems1 := oTree:Items() oItems1:SetProperty("CellCaptionFormat",oItems1:AddItem("Just another <a2>anchor</a> element ..."),0,1/*exHTML*/) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
199 |
Can I change the font for the tooltip
|
198 |
Can I change the font for the tooltip
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree LOCAL oStdFont oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ToolTipDelay := 1 oStdFont := oTree:ToolTipFont() oStdFont:Name := "Tahoma" oStdFont:Size := 14 oTree:ToolTipWidth := 364 oTree:Columns():Add("tootip"):ToolTip := "this is a tooltip assigned to a column" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
197 |
Can I change the order of the buttons in the scroll bar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("ScrollOrderParts",1/*exHScroll*/,"t,l,r") oTree:SetProperty("ScrollOrderParts",0/*exVScroll*/,"t,l,r") oTree:ScrollBars := 15/*exDisableBoth*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
196 |
The thumb size seems to be very small. Can I make it bigger
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ColumnAutoResize := .F. oTree:Columns():Add("C1"):Width := 256 oTree:Columns():Add("C2"):Width := 256 oTree:Columns():Add("C3"):Width := 256 oTree:SetProperty("ScrollThumbSize",1/*exHScroll*/,64) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
195 |
How can I display my text on the scroll bar, using a different font
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("ScrollPartCaption",1/*exHScroll*/,256/*exThumbPart*/,"This is <s><font Tahoma;12> just </font></s> text") oTree:ColumnAutoResize := .F. oTree:ScrollHeight := 20 oTree:Columns():Add("C1"):Width := 256 oTree:Columns():Add("C2"):Width := 256 oTree:Columns():Add("C3"):Width := 256 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
194 |
How can I display my text on the scroll bar, using a different font
|
193 |
How can I display my text on the scroll bar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("ScrollPartCaption",1/*exHScroll*/,256/*exThumbPart*/,"this is just a text") oTree:ColumnAutoResize := .F. oTree:Columns():Add("C1"):Width := 256 oTree:Columns():Add("C2"):Width := 256 oTree:Columns():Add("C3"):Width := 256 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
192 |
How do I enlarge or change the size of the control's scrollbars
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ScrollHeight := 18 oTree:ScrollWidth := 18 oTree:ScrollButtonWidth := 18 oTree:ScrollButtonHeight := 18 oTree:ScrollBars := 15/*exDisableBoth*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
191 |
How do I assign a tooltip to a scrollbar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("ScrollToolTip",1/*exHScroll*/,"This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar") oTree:ColumnAutoResize := .F. oTree:Columns():Add("C1"):Width := 256 oTree:Columns():Add("C2"):Width := 256 oTree:Columns():Add("C3"):Width := 256 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
190 |
How do I assign an icon to the button in the scrollbar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=") oTree:SetProperty("ScrollPartVisible",1/*exHScroll*/,32768/*exLeftB1Part*/,.T.) oTree:SetProperty("ScrollPartCaption",1/*exHScroll*/,32768/*exLeftB1Part*/,"<img>1</img>") oTree:ScrollHeight := 18 oTree:ScrollButtonWidth := 18 oTree:ScrollBars := 5/*exDisableNoHorizontal*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
189 |
I need to add a button in the scroll bar. Is this possible
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("ScrollPartVisible",1/*exHScroll*/,32768/*exLeftB1Part*/,.T.) oTree:SetProperty("ScrollPartCaption",1/*exHScroll*/,32768/*exLeftB1Part*/,"1") oTree:ScrollBars := 5/*exDisableNoHorizontal*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
188 |
Can I display an additional buttons in the scroll bar
|
187 |
Can I display the picture aligned to the right, while the text aligned to the left
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree LOCAL s oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:DefaultItemHeight := 48 oTree:Columns():Add("C1") oItems := oTree:Items() s := oItems:SplitCell(oItems:AddItem("Text"),0) oItems:SetProperty("CellPicture",,s,oTree:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")) oItems:SetProperty("CellHAlignment",,s,2/*RightAlignment*/) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
186 |
How can I display a custom size picture to a cell or item
|
185 |
How can I display a multiple pictures to a cell or item
|
184 |
How do I change the column's foreground color for numbers between an interval - Range
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oConditionalFormat LOCAL oItems,oItems1,oItems2,oItems3 LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oConditionalFormat := oTree:ConditionalFormats():Add("%0 >= 2 and %0 <= 10") oConditionalFormat:Bold := .T. oConditionalFormat:SetProperty("ForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oConditionalFormat:ApplyTo := 1/*0x1+*/ oTree:Columns():Add("N1") oTree:Columns():Add("N2") oItems := oTree:Items() oItems:SetProperty("CellCaption",oItems:AddItem(1),1,2) oItems1 := oTree:Items() oItems1:SetProperty("CellCaption",oItems1:AddItem(3),1,3) oItems2 := oTree:Items() oItems2:SetProperty("CellCaption",oItems2:AddItem(10),1,11) oItems3 := oTree:Items() oItems3:SetProperty("CellCaption",oItems3:AddItem(13),1,31) oTree:SearchColumnIndex := 1 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
183 |
How do I change the item's foreground color for numbers between an interval - Range
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ConditionalFormats():Add("%0 >= 2 and %0 <= 10"):SetProperty("ForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oTree:Columns():Add("Numbers") oTree:Items():AddItem(1) oTree:Items():AddItem(2) oTree:Items():AddItem(10) oTree:Items():AddItem(20) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
182 |
How do I change the item's background color for numbers less than a value
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ConditionalFormats():Add("%0 < 10"):SetProperty("BackColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oTree:Columns():Add("Numbers") oTree:Items():AddItem(1) oTree:Items():AddItem(2) oTree:Items():AddItem(10) oTree:Items():AddItem(20) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
181 |
How do I underline the numbers greater than a value
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ConditionalFormats():Add("%0 >= 10"):Underline := .T. oTree:Columns():Add("Numbers") oTree:Items():AddItem(1) oTree:Items():AddItem(2) oTree:Items():AddItem(10) oTree:Items():AddItem(20) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
180 |
How do I highlight in italic the numbers greater than a value
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ConditionalFormats():Add("%0 >= 10"):StrikeOut := .T. oTree:Columns():Add("Numbers") oTree:Items():AddItem(1) oTree:Items():AddItem(2) oTree:Items():AddItem(10) oTree:Items():AddItem(20) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
179 |
How do I highlight in italic the numbers greater than a value
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ConditionalFormats():Add("%0 >= 10"):Italic := .T. oTree:Columns():Add("Numbers") oTree:Items():AddItem(1) oTree:Items():AddItem(2) oTree:Items():AddItem(10) oTree:Items():AddItem(20) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
178 |
How do I highlight in bold the numbers greater than a value
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ConditionalFormats():Add("%0 >= 10"):Bold := .T. oTree:Columns():Add("Numbers") oTree:Items():AddItem(1) oTree:Items():AddItem(2) oTree:Items():AddItem(10) oTree:Items():AddItem(20) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
177 |
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oTree:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oTree:HasButtons := 4/*exCustom*/ oTree:SetProperty("HasButtonsCustom",.F.,16777216) oTree:SetProperty("HasButtonsCustom",.T.,33554432) oTree:Columns():Add("Column") oItems := oTree:Items() h := oItems:AddItem("Root 1") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2") oItems:InsertItem(h,,"Child") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
176 |
Can I use your EBN files to change the visual appearance for radio buttons
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oTree:SetProperty("RadioImage",.F.,16777216) oTree:SetProperty("RadioImage",.T.,33554432) oTree:Columns():Add("Radio"):SetProperty("Def",1/*exCellHasRadioButton*/,.T.) oItems := oTree:Items() oItems:AddItem("Radio 1") oItems:SetProperty("CellState",oItems:AddItem("Radio 2"),0,1) oItems:AddItem("Radio 3") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
175 |
Can I use your EBN files to change the visual appearance for checkbox cells
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oTree:SetProperty("CheckImage",0/*Unchecked*/,16777216) oTree:SetProperty("CheckImage",1/*Checked*/,33554432) oTree:Columns():Add("Check"):SetProperty("Def",0/*exCellHasCheckBox*/,.T.) oItems := oTree:Items() oItems:AddItem("Check 1") oItems:SetProperty("CellState",oItems:AddItem("Check 2"),0,1) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
174 |
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oTree:VisualAppearance():Add(3,"c:\exontrol\images\hot.ebn") oTree:SetProperty("Background",388/*exHSThumb*/,0x1000000) oTree:SetProperty("Background",389/*exHSThumbP*/,0x2000000) oTree:SetProperty("Background",391/*exHSThumbH*/,0x3000000) oTree:SetProperty("Background",260/*exVSThumb*/,0x1000000) oTree:SetProperty("Background",261/*exVSThumbP*/,0x2000000) oTree:SetProperty("Background",263/*exVSThumbH*/,0x3000000) oTree:ColumnAutoResize := .F. oTree:ScrollBySingleLine := .T. oTree:Columns():Add("S"):Width := 483 oItems := oTree:Items() oItems:SetProperty("ItemHeight",oItems:AddItem("Item 1"),248) oTree:Items():AddItem("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
173 |
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oTree:VisualAppearance():Add(3,"c:\exontrol\images\hot.ebn") oTree:SetProperty("Background",388/*exHSThumb*/,0x1000000) oTree:SetProperty("Background",389/*exHSThumbP*/,0x2000000) oTree:SetProperty("Background",391/*exHSThumbH*/,0x3000000) oTree:ColumnAutoResize := .F. oTree:Columns():Add("S"):Width := 483 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
172 |
I've seen that you can change the visual appearance for the scroll bar. How can I do that
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oTree:VisualAppearance():Add(3,"c:\exontrol\images\hot.ebn") oTree:SetProperty("Background",324/*exSBtn*/,0x1000000) oTree:SetProperty("Background",325/*exSBtnP*/,0x2000000) oTree:SetProperty("Background",327/*exSBtnH*/,0x3000000) oTree:SetProperty("Background",404/*exHSBack*/,AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oTree:SetProperty("Background",276/*exVSBack*/,AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oTree:SetProperty("Background",511/*exScrollSizeGrip*/,AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oTree:Columns():Add("S"):Width := 32 oTree:Columns():Add("Level 1"):LevelKey := 1 oTree:Columns():Add("Level 2"):LevelKey := 1 oTree:Columns():Add("Level 3"):LevelKey := 1 oTree:Columns():Add("E1"):Width := 32 oTree:Columns():Add("E2"):Width := 32 oTree:Columns():Add("E3"):Width := 32 oTree:Columns():Add("E4"):Width := 32 oTree:ColumnAutoResize := .F. oTree:ScrollBars := 15/*exDisableBoth*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
171 |
Is there any option to highligth the column from the cursor - point
|
170 |
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
|
169 |
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oColumn LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oTree:SetProperty("Background",8/*exDateHeader*/,0x1000000) oTree:SetProperty("Background",9/*exDateTodayUp*/,0x1000000) oTree:SetProperty("Background",10/*exDateTodayDown*/,0x2000000) oTree:SetProperty("Background",11/*exDateScrollThumb*/,0x1000000) oTree:SetProperty("Background",12/*exDateScrollRange*/,AutomationTranslateColor( GraMakeRGBColor ( { 230,230,230 } ) , .F. )) oTree:SetProperty("Background",13/*exDateSeparatorBar*/,AutomationTranslateColor( GraMakeRGBColor ( { 230,230,230 } ) , .F. )) oTree:SetProperty("Background",14/*exDateSelect*/,0x1000000) oColumn := oTree:Columns():Add("Date") oColumn:FilterType := 4/*exDate*/ oColumn:DisplayFilterButton := .T. oColumn:DisplayFilterDate := .T. oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
168 |
How do I change the visual aspect of the close button in the filter bar, using EBN
|
167 |
How do I change the visual aspect of buttons in the cell, using EBN
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oTree:SetProperty("Background",2/*exCellButtonUp*/,0x1000000) oTree:SetProperty("Background",3/*exCellButtonDown*/,0x2000000) oTree:SetProperty("SelForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oTree:ShowFocusRect := .F. oTree:Columns():Add("Column 1"):SetProperty("Def",2/*exCellHasButton*/,.T.) oTree:Items():AddItem("Button 1") oTree:Items():AddItem("Button 2") oTree:Columns():Add("Column 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
166 |
How do I change the visual aspect of the drop down filter button, using EBN
|
165 |
Is there any function to get the control's data in your x-script format / template
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:Columns():Add("Column") oTree:Items():AddItem(oTree:ToTemplate()) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
164 |
How do I enable resizing the columns at runtime
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems,oItems1 LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ColumnsAllowSizing := .T. oTree:MarkSearchColumn := .F. oTree:HeaderVisible := .F. oTree:Columns():Add("Column 1") oTree:Columns():Add("Column 2") oTree:DrawGridLines := 2/*exVLines*/ oItems := oTree:Items() oItems:SetProperty("CellCaption",oItems:AddItem("Item 1"),1,"Sub Item 1") oItems1 := oTree:Items() oItems1:SetProperty("CellCaption",oItems1:AddItem("Item 2"),1,"Sub Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
163 |
How can I select the second inner column when spliting the cells
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SelectColumnInner := 1 oTree:FullRowSelect := .F. oTree:DrawGridLines := -1/*exAllLines*/ oTree:Columns():Add("Column") oItems := oTree:Items() oItems:SetProperty("CellCaption",,oItems:SplitCell(oItems:AddItem("Split Cell 1.1"),0),"Split Cell 2.1") oItems:SetProperty("CellCaption",,oItems:SplitCell(oItems:AddItem("Split Cell 1.2"),0),"Split Cell 2.2") oItems:SetProperty("SelectItem",oItems:FirstVisibleItem(),.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
162 |
How can I sort by multiple columns
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SingleSort := .F. oTree:Columns():Add("C1"):SortOrder := 1/*SortAscending*/ oTree:Columns():Add("C2"):SortOrder := 2/*SortDescending*/ oTree:Columns():Add("C3"):SortOrder := 1/*SortAscending*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
161 |
How can I add several columns to control's sort bar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SortBarVisible := .T. oTree:SortBarColumnWidth := 48 oTree:Columns():Add("C1"):SortOrder := 1/*SortAscending*/ oTree:Columns():Add("C2"):SortOrder := 2/*SortDescending*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
160 |
How can I change the width of the columns being displayed in the sort bar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SortBarVisible := .T. oTree:SortBarColumnWidth := 48 oTree:Columns():Add("C1"):SortOrder := 1/*SortAscending*/ oTree:Columns():Add("C2"):SortOrder := 2/*SortDescending*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
159 |
How can I change the height of the sort bar's
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SortBarVisible := .T. oTree:SortBarHeight := 48 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
158 |
How can I change the sort bar's foreground color
|
157 |
How can I change the visual appearance of the control's sort bar, using EBN files
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oTree:SortBarVisible := .T. oTree:SetProperty("BackColorSortBar",0x1000000) oTree:SetProperty("BackColorSortBarCaption",0x2000000) oTree:Appearance := 0/*None2*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
156 |
How can I change the sort bar's background color
|
155 |
How can I change the default caption being displayed in the control's sort bar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SortBarVisible := .T. oTree:SortBarCaption := "new caption" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
154 |
How can I show the locked / fixed items on the bottom side of the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ShowLockedItems := .T. oTree:Columns():Add("Column") oItems := oTree:Items() oItems:SetProperty("LockedItemCount",1/*MiddleAlignment*/,2) oItems:SetProperty("CellCaption",oItems:LockedItem(1/*MiddleAlignment*/,0),0,"locked item 1") oItems:SetProperty("CellCaption",oItems:LockedItem(1/*MiddleAlignment*/,1),0,"locked item 2") oItems:AddItem("un-locked item") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
153 |
How can I show the locked / fixed items
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ShowLockedItems := .T. oTree:Columns():Add("Column") oItems := oTree:Items() oItems:SetProperty("LockedItemCount",0/*TopAlignment*/,2) oItems:SetProperty("CellCaption",oItems:LockedItem(0/*TopAlignment*/,0),0,"locked item 1") oItems:SetProperty("CellCaption",oItems:LockedItem(0/*TopAlignment*/,1),0,"locked item 2") oItems:AddItem("un-locked item") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
152 |
How can I hide the locked / fixed items
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ShowLockedItems := .F. oTree:Columns():Add("Column") oItems := oTree:Items() oItems:SetProperty("LockedItemCount",0/*TopAlignment*/,1) oItems:SetProperty("CellCaption",oItems:LockedItem(0/*TopAlignment*/,0),0,"locked item") oItems:AddItem("un-locked item") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
151 |
How can I show the control's sort bar
|
150 |
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:PictureLevelHeader := oTree:ExecuteTemplate("loadpicture(`c:\exontrol\images\colorize.gif`)") oTree:PictureDisplayLevelHeader := 49/*Stretch*/ oTree:Columns():Add("S"):Width := 32 oTree:Columns():Add("Level 1"):LevelKey := 1 oTree:Columns():Add("Level 2"):LevelKey := 1 oTree:Columns():Add("Level 3"):LevelKey := 1 oTree:Columns():Add("E1"):Width := 32 oTree:Columns():Add("E2"):Width := 32 oTree:Columns():Add("E3"):Width := 32 oTree:Columns():Add("E4"):Width := 32 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
149 |
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:PictureLevelHeader := oTree:ExecuteTemplate("loadpicture(`c:\exontrol\images\colorize.gif`)") oTree:PictureDisplayLevelHeader := 18/*MiddleRight*/ oTree:Columns():Add("S"):Width := 32 oTree:Columns():Add("Level 1"):LevelKey := 1 oTree:Columns():Add("Level 2"):LevelKey := 1 oTree:Columns():Add("Level 3"):LevelKey := 1 oTree:Columns():Add("E"):Width := 32 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
148 |
How can I display a picture on the control's header, when multiple levels are displayed
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:PictureLevelHeader := oTree:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oTree:Columns():Add("S"):Width := 32 oTree:Columns():Add("Level 1"):LevelKey := 1 oTree:Columns():Add("Level 2"):LevelKey := 1 oTree:Columns():Add("Level 3"):LevelKey := 1 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
147 |
How can I change the header's background color, when multiple levels are displayed
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("BackColorLevelHeader",AutomationTranslateColor( GraMakeRGBColor ( { 250,0,0 } ) , .F. )) oTree:Columns():Add("S"):Width := 32 oTree:Columns():Add("Level 1"):LevelKey := 1 oTree:Columns():Add("Level 2"):LevelKey := 1 oTree:Columns():Add("Level 3"):LevelKey := 1 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
146 |
Can I programmatically scroll the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:Columns():Add("Column") oTree:Items():AddItem(0) oTree:Items():AddItem(1) oTree:Items():AddItem(2) oTree:Items():AddItem(3) oTree:PutItems(oTree:GetItems(0)) oTree:PutItems(oTree:GetItems(0)) oTree:SetProperty("ScrollPos",.T.,1) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
145 |
How do I disable expanding or collapsing an item when user presses the arrow keys
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ExpandOnKeys := .F. oTree:LinesAtRoot := -1/*exLinesAtRoot*/ oTree:Columns():Add("Column 1") oItems := oTree:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
144 |
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ExpandOnSearch := .T. oTree:LinesAtRoot := -1/*exLinesAtRoot*/ oTree:AutoSearch := .T. oTree:Columns():Add("Column"):AutoSearch := 1/*exContains*/ oItems := oTree:Items() oItems:InsertItem(oItems:InsertItem(oItems:AddItem("text"),,"some text"),,"another text") oItems:InsertItem(oItems:InsertItem(oItems:AddItem("text"),,"some text"),,"another text") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
143 |
Can I programmatically scroll the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:Columns():Add("Column") oTree:Items():AddItem(0) oTree:Items():AddItem(1) oTree:Items():AddItem(2) oTree:Items():AddItem(3) oTree:PutItems(oTree:GetItems(0)) oTree:PutItems(oTree:GetItems(0)) oTree:Scroll(1/*exScrollDown*/) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
142 |
Do you have some function to load data from a safe array
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:Columns():Add("Column") oTree:Items():AddItem(0) oTree:PutItems(oTree:GetItems(0)) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
141 |
Do you have some function to retrieve all items to a safe array
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:Columns():Add("Column") oTree:Items():AddItem(0) oTree:PutItems(oTree:GetItems(0)) oTree:Items():AddItem(1) oTree:PutItems(oTree:GetItems(0)) oTree:Items():AddItem(2) oTree:PutItems(oTree:GetItems(0)) oTree:Items():AddItem(3) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
140 |
How can still display the selected items when the control loses the focus
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:HideSelection := .F. oTree:Columns():Add("Column") oItems := oTree:Items() oItems:AddItem("Item 3") oItems:AddItem("Item 1") oItems:SetProperty("SelectItem",oItems:AddItem("Item 2"),.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
139 |
How can I hide a column
|
138 |
How can I ensure that a column is visible and fits the control's client area
|
137 |
I've seen that the width of the tooltip is variable. Can I make it larger
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ToolTipWidth := 328 oTree:Columns():Add("tootip"):ToolTip := "this is a tooltip that should be very very very very very very very long" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
136 |
How do I disable showing the tooltip for all control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ToolTipDelay := 0 oTree:Columns():Add("tootip"):ToolTip := "this is a tooltip assigned to a column" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
135 |
How do I let the tooltip being displayed longer
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ToolTipPopDelay := 10000 oTree:Columns():Add("tootip"):ToolTip := "this is a tooltip assigned to a column" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
134 |
How do I show the tooltip quicker
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ToolTipDelay := 1 oTree:Columns():Add("tootip"):ToolTip := "this is a tooltip assigned to a column" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
133 |
How do I change the caption being displayed in the control's filter bar
|
132 |
How do I disable expanding or collapsing an item when user double clicks it
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ExpandOnDblClick := .F. oTree:LinesAtRoot := -1/*exLinesAtRoot*/ oTree:Indent := 13 oTree:Columns():Add("Column 1") oItems := oTree:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
131 |
How do I search case sensitive, using your incremental search feature
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oColumns LOCAL oItems,oItems1 LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:AutoSearch := .T. oTree:ASCIILower := "" oColumns := oTree:Columns() oColumns:Add("exStartWith"):AutoSearch := 0/*exStartWith*/ oColumns:Add("exContains"):AutoSearch := 1/*exContains*/ oItems := oTree:Items() oItems:SetProperty("CellCaption",oItems:AddItem("text"),1,"another text") oItems1 := oTree:Items() oItems1:SetProperty("CellCaption",oItems1:AddItem("text"),1,"another text") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
130 |
How do I disable the control
|
129 |
How do I enable the incremental search feature within a column
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oColumns LOCAL oItems,oItems1 LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:AutoSearch := .T. oColumns := oTree:Columns() oColumns:Add("exStartWith"):AutoSearch := 0/*exStartWith*/ oColumns:Add("exContains"):AutoSearch := 1/*exContains*/ oItems := oTree:Items() oItems:SetProperty("CellCaption",oItems:AddItem("text"),1,"another text") oItems1 := oTree:Items() oItems1:SetProperty("CellCaption",oItems1:AddItem("text"),1,"another text") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
128 |
How do I call your x-script language
|
127 |
How do I call your x-script language
|
126 |
How do I show alternate rows in different background color
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("BackColorAlternate",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oTree:Columns():Add("Column") oItems := oTree:Items() oItems:AddItem("Item 1") oItems:AddItem("Item 2") oItems:AddItem("Item 3") oItems:AddItem("Item 4") oItems:AddItem("Item 5") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
125 |
How do I enlarge the drop down filter window
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oColumn LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:FilterBarDropDownHeight := "-320" oColumn := oTree:Columns():Add("Column") oColumn:DisplayFilterButton := .T. oColumn:FilterBarDropDownWidth := "-320" oTree:Items():AddItem("Item 1") oTree:Items():AddItem("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
124 |
How do I filter programatically the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oColumn LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oColumn := oTree:Columns():Add("Column") oColumn:DisplayFilterButton := .T. oColumn:FilterType := 3/*exPattern*/ oColumn:Filter := "Item*" oTree:Items():AddItem("Item 1") oTree:Items():AddItem("") oTree:Items():AddItem("Item 2") oTree:ApplyFilter() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
123 |
How do I change the font of the control's filterbar
|
122 |
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
|
121 |
How do I change the background color of the control's filterbar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oColumn LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("FilterBarBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oColumn := oTree:Columns():Add("Column") oColumn:DisplayFilterButton := .T. oColumn:FilterType := 1/*exBlanks*/ oTree:ApplyFilter() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
120 |
How do I change the foreground color of the control's filterbar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oColumn LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("FilterBarForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oColumn := oTree:Columns():Add("Column") oColumn:DisplayFilterButton := .T. oColumn:FilterType := 1/*exBlanks*/ oTree:ApplyFilter() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
119 |
How do I change the height of the control's filterbar
|
118 |
How do select only a portion of text when the control starts editing a cell
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:AllowEdit := .T. oTree:SelStart := 1 oTree:SelLength := 1 oTree:Columns():Add("Column") oTree:Items():AddItem("Item 1") oTree:Items():AddItem("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
117 |
How do I change the header's foreground color
|
116 |
I have a picture on the control's background, the question is how do I draw selection as semi-transparent
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:Picture := oTree:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oTree:SelBackMode := 1/*exTransparent*/ oTree:Columns():Add("Column") oTree:Items():AddItem("Item 1") oTree:Items():AddItem("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
115 |
It seems that the control uses the TAB key, is there any way to avoid that
|
114 |
I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SelectColumnIndex := 1 oTree:FullRowSelect := .F. oTree:SelectColumn := .T. oTree:Columns():Add("Column 1") oTree:Columns():Add("Column 2") oItems := oTree:Items() oItems:SetProperty("CellCaption",oItems:AddItem("Item 1"),1,"SubItem 1") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
113 |
How do I assign a database to your control, using ADO, ADOR or ADODB objects
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree LOCAL rs oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ColumnAutoResize := .F. oTree:ContinueColumnScroll := .F. rs := CreateObject("ADOR.Recordset") rs:Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExTree\Sample\Access\sample.mdb",3/*adOpenStatic*/,3/*adLockOptimistic*/) oTree:DataSource := rs oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
112 |
How do I change the visual appearance effect for the selected item, using EBN
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oTree:SetProperty("SelBackColor",0x1000000) oTree:SetProperty("SelForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oTree:ShowFocusRect := .F. oTree:Columns():Add("Column") oTree:Items():AddItem(0) oTree:Items():AddItem(1) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
111 |
How do I change the colors for the selected item
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SetProperty("SelBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oTree:Columns():Add("Column") oTree:Items():AddItem(0) oTree:Items():AddItem(1) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
110 |
How do I get ride of the rectangle arround focused item
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ShowFocusRect := .F. oTree:Columns():Add("Column") oTree:Items():AddItem(0) oTree:Items():AddItem(1) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
109 |
How can I change the control's font
|
108 |
I can't scroll to the end of the data. What can I do
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems,oItems1,oItems2,oItems3 LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:ScrollBySingleLine := .T. oTree:DrawGridLines := -2/*exRowLines*/ oTree:Columns():Add("Column") oItems := oTree:Items() oItems:SetProperty("ItemHeight",oItems:AddItem(0),13) oTree:PutItems(oTree:GetItems(0)) oItems1 := oTree:Items() oItems1:SetProperty("ItemHeight",oItems1:AddItem(1),26) oTree:PutItems(oTree:GetItems(0)) oItems2 := oTree:Items() oItems2:SetProperty("ItemHeight",oItems2:AddItem(2),36) oTree:PutItems(oTree:GetItems(0)) oItems3 := oTree:Items() oItems3:SetProperty("ItemHeight",oItems3:AddItem(3),48) oTree:PutItems(oTree:GetItems(0)) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
107 |
How do I specify the column where the tree lines / hierarchy are shown
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oTree:TreeColumnIndex := 1 oTree:Columns():Add("Column 1") oTree:Columns():Add("Column 2") oItems := oTree:Items() h := oItems:AddItem("Root 1.1") oItems:SetProperty("CellCaption",h,1,"Root 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 2.1"),1,"Child 2.2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2.1") oItems:SetProperty("CellCaption",h,1,"Root 2.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
106 |
How do I specify the indentation of the child items relative to their parents
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oTree LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oTree:Indent := 11 oTree:Columns():Add("Column") oItems := oTree:Items() h := oItems:AddItem("Root 1") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2") oItems:InsertItem(h,,"Child") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
105 |
Is there any option to select an item using the right button of the mouse (rclick)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:RClickSelect := .T. oTree:Columns():Add("Column") oTree:Items():AddItem("Item 1") oTree:Items():AddItem("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
104 |
How do I edit a cell
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:AllowEdit := .T. oTree:Columns():Add("Column") oTree:Items():AddItem("Item 1") oTree:Items():AddItem("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
103 |
I have FullRowSelect property on False, how do I select a column
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SelectColumnIndex := 1 oTree:FullRowSelect := .F. oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
102 |
How can I scroll columns one by one, not pixel by pixel
|
101 |
How can I enable multiple items selection
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oTree oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oTree := XbpActiveXControl():new( oForm:drawingArea ) oTree:CLSID := "Exontrol.Tree.1" /*{3C5FC763-72BA-4B97-9985-81862E9251F2}*/ oTree:create(,, {10,60},{610,370} ) oTree:SingleSel := .F. oTree:Columns():Add("Column") oTree:Items():AddItem(0) oTree:Items():AddItem(1) oTree:Items():AddItem(2) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |